/*
 * @Author Baorong Yu
 * @Email: y15195965752@163.com
 * @Address: 浙江省杭州市余杭区赛银国际12幢4楼
 * @Date 2024/12/3 15:42
 * @Description moj_app
 */

class Throttle {
  bool enable = true;
  call(Function func) {
    if (enable) {
      func();
      enable = false;
      Future.delayed(Duration(milliseconds: 300), () {
        enable = true;
      });
    }
  }
}
